<?
/*
Bitsand - a web-based booking system for LRP events
Copyright (C) 2006, 2007 Russell Peter Phillips

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

//Function to obfuscate an e-mail address - returns address made up of HTML entities
function Obfuscate ($email) {
	$sReturn = '';
	for ($i = 0; $i < strlen ($email); $i++) { 
		$bit = $email [$i]; 
		$sReturn .= '&#' . ord ($bit) . ';';
	}
	return $sReturn;
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<link rel = "stylesheet" type = "text/css" href = "main.css" media = "screen">
<link rel = "stylesheet" type = "text/css" href = "print.css" media = "print">
<title><?=TITLE?></title>
</head>
<?
//Different style for a couple of pages
$sPage = basename ($_SERVER["SCRIPT_FILENAME"]);
if ($sPage == 'index.php' || $sPage == 'start.php')
	echo "<body class = 'event'>\n";
else
	echo "<body>\n";
if (ini_get ('error_reporting') != 0)
	echo "<p style = 'border: solid thin orange; background: orange; text-align: center;'><b>DEBUG MODE ENABLED</b></p>\n";
?>
